#ifndef ORDERDAO_H
#define ORDERDAO_H

#include<QSqlQuery>
#include"../poco/bill.h"
#include<vector>
#include"../poco/windowInfo.h"
#include <time.h>
#include <QDate>
using std::vector;


class OrderDao
{
public:
    OrderDao();

    //订单保存到数据库中
    void insert(Bill bill);

    //查询某个时间段内的指定窗口(id)订单信息
    void selectDuring(WindowInfo win,QDate start,QDate end,vector<Bill> &bills);

protected:
    QSqlQuery result;
};

#endif // ORDERDAO_H
